<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <style>
        .active{
            color: chartreuse;
        }
        .big{
            font-size: 80px;
        }
    </style>
</head>
<body>
    <div id="app">
        <div :class="{active:isActive,big:isBig}">斯巴达</div>
        <div :class="show">维京勇士</div>
        <div :class="[a,b]">铁骑</div>

    </div>
    <script>
        var vm = new Vue({
            el:"#app",
            data:{
                isActive:true,
                isBig:true,
                show:{
                    active:true,
                    big:true
                },
                a:'active',
                b:'big'
            }
        })
    </script>
</body>
</html>